<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>个人数据侵权损害赔偿智能预测系统</title>
    <style>
        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
            width: 100%;
            overflow: hidden;
        }
        
        body {
            background: url('/images/indexBack.png') center center/cover no-repeat fixed;
            position: relative;
            height: 100vh;
            width: 100vw;
            overflow: hidden;
        }
        
        .container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: 200px 1fr;
            grid-template-rows: 60px 1fr;
            background-color: rgba(255, 255, 255, 0.3); /* 降低不透明度 */
            backdrop-filter: blur(2px); /* 减少模糊效果 */
            -webkit-backdrop-filter: blur(2px);
        }
        
        .left-top {
            grid-column: 1;
            grid-row: 1;
            border-right: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
        }
        
        .right-top {
            grid-column: 2;
            grid-row: 1;
            border-bottom: 1px solid #ddd;
            display: flex;
            justify-content: space-between; /* 添加这行使内容分布在两端 */
        }
        
        .right-top-left {
            flex: 1;
        }
        
        .right-top-right {
            width: 250px; /* 调整宽度 */
            display: flex;
            justify-content: flex-end; /* 使内容靠右对齐 */
            padding-right: 15px; /* 添加右侧内边距 */
        }
        
        .left {
            grid-column: 1;
            grid-row: 2;
            border-right: 1px solid #ddd;
        }
        
        .content {
            grid-column: 2;
            grid-row: 2;
            overflow: auto;
        }
        
        iframe {
            width: 100%;
            height: 100%;
            border: none;
            background: transparent; /* 设置iframe背景为透明 */
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 修正iframe路径 -->
        <div class="left-top">
            <iframe src="left-top.html"></iframe>
        </div>
        <div class="right-top">
            <div class="right-top-left">
                <iframe src="right-top-left.html"></iframe>
            </div>
            <div class="right-top-right">
                <iframe src="right-top-right.html"></iframe>
            </div>
        </div>
        <div class="left">
            <iframe src="left-bottom.html"></iframe>
        </div>
        <div class="content">
            <iframe id="contentFrame" src="./content/content-dashboard.html"></iframe>
        </div>
    </div>

    <script>
        // 检查登录状态
        if(localStorage.getItem('isLoggedIn') !== 'true') {
            window.location.href = 'login.html';
        }
        
        // 接收来自菜单的页面切换请求
        window.addEventListener('message', function(e) {
            if(e.data.type === 'navigate') {
                // 更新内容区域的 src
                document.getElementById('contentFrame').src = './content/' + e.data.url;
            }
        });
    </script>
</body>
</html>